<template>
    <div class="alllook-background">
         <el-table
    :data="tableData"
    stripe
    border
    highlight-current-row
    style="width: 100%">
    <el-table-column
    prop="p_id"
    label="实践序号"
    width="210"
    >
    </el-table-column>
    <el-table-column
    prop="p_name"
    label="实践名称"
    width="210">
    </el-table-column>
    <el-table-column
    prop="address"
    label="实践地址"
    width="210">
    </el-table-column>
    <el-table-column
    prop="teacher.teacher_name"
    label="负责老师"
    width="210">
    </el-table-column>
    <el-table-column
    prop="start_time"
    label="起始时间"
    width="210">
    </el-table-column>
    <el-table-column
    prop="end_time"
    label="结束时间"
    width="220">
    </el-table-column>
    
  </el-table>

    </div>
       
  
</template>

<script>
export default {
    data(){
        return {
        tableData: [],
        teacher:JSON.parse(sessionStorage.getItem('teacher'))
    };
    },
    created(){
        this.$axios.post('/api/teacher/selectpractice',this.$qs.stringify({t_id:this.teacher.t_id})).then(res=>{
            this.tableData=res.data;
        })
    }
    
    
}
</script>

<style>
.table{
    cursor: pointer;
    font-size:20px;
}
alllook-background{
    padding: 10px;
    font-size: 16px;
    box-shadow:5px 5px 20px gainsboro;
}
</style>